package com.example.myapplication

import android.content.Intent
import android.os.Bundle
import android.widget.Button
import androidx.activity.ComponentActivity

class MainActivity2 : ComponentActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        val button:Button = findViewById<Button>(R.id.btn2);
        button.setOnClickListener {
            var intent = Intent()
            intent.setClass(this, Main3Activity::class.java)
            startActivity(intent)
        }
    }
}